import { FROM_DATA } from '@/views/marketing/unpack/types'

import { Page } from './commonTypes'
export type RuleListRes = {
  dataList: Array<RuleListItem>
  page: Page
}
export type RuleListItem = {
  createTime: string
  id: number
  ruleDetails: string
  ruleTitle: string
  ruleType: number
  updateTime: string
}
export type AddRule = {
  id: number
  ruleDetails: string
  ruleTitle: string
  ruleType: number
}

export type editRule = {
  id: number
  ruleDetails: string
  ruleTitle: string
  ruleType: number
}

export type CreateUnpackReq = Omit<FROM_DATA, 'date'> & {
  startTime: string
  endTime: string
}

export type ResultRes = {
  dataList: Array<ResultResItem>
  page: Page
}

export type ResultResItem = {
  createTime: string
  mobile: string
  nickname: string
  prizeInfo: string
  prizeType: string
}
export type UpdateStatusReq = {
  /** 活动id */
  activityInfoId: string | number
  /** 状态
   * - `1`开启
   * - `2`关闭
   *
   */
  status: number
}
export type CheckedActivityTimeReq = {
  endTime: string
  id: string
  startTime: string
}
